package com.acme.bankapp.service.bank.listener.email;

import com.acme.bankapp.domain.bank.client.Client;

import java.io.Serializable;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class Email implements Serializable {
    private final Client client;
    private final String eMail;

    public Email(Client client, String eMail) {
        this.client = client;
        this.eMail = eMail;
    }

    @Override
    public String toString() {
        return "Client " + client.toString() + " email " + eMail;
    }
}
